export default {
  namespaced:true,
  state: {
    userInfo: {},
	planeInfo:{}
  },
  getters: {
    getUserInfo: function(state) {
      return state.userInfo
    }
  },
  mutations: {
    updateUserInfo(state, userInfo){
      state.userInfo = userInfo
    },
	updatePlaneInfo(state, planeInfo){
	  state.planeInfo = planeInfo
	}
  },
  actions: {
    updateUserInfo({ commit }, userInfo) {
      commit('updateUserInfo', userInfo)
    },
	updatePlaneInfo({ commit }, planeInfo) {
	  commit('updatePlaneInfo', planeInfo)
	}
  }
}
  